package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ViewElementList {

    private int beginIndex;
    private int endIndex;
    private List<ViewElement> viewElementList;

    public ViewElementList(int beginIndex,
                           int endIndex,
                           List<ViewElement> viewElementList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.viewElementList = viewElementList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return viewElementList.size();
    }

    public ViewElement get(int index) {
        return viewElementList.get(index);
    }

}
